package com.my.object;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = "course_impl")
public class CourseImpl {
	@Id
	@Column(name = "id")
	private int id;
	@Column(name = "capacity")
	private int capacity;
	@Column(name = "remains")
	private int remains;
	@Column(name = "create_datetime")
	private Date create_datetime;
	@Column(name = "course_template_id")
	private int course_template_id;
	@Column(name = "lecturer_id")
	private int lecturer_id;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getCapacity() {
		return capacity;
	}

	public void setCapacity(int capacity) {
		this.capacity = capacity;
	}

	public int getRemains() {
		return remains;
	}

	public void setRemains(int remains) {
		this.remains = remains;
	}

	public Date getCreate_datetime() {
		return create_datetime;
	}

	public void setCreate_datetime(Date create_datetime) {
		this.create_datetime = create_datetime;
	}

	public int getCourse_template_id() {
		return course_template_id;
	}

	public void setCourse_template_id(int course_template_id) {
		this.course_template_id = course_template_id;
	}

	public int getLecturer_id() {
		return lecturer_id;
	}

	public void setLecturer_id(int lecturer_id) {
		this.lecturer_id = lecturer_id;
	}

	@Override
	public String toString() {
		return "Course_impl [id=" + id + ", capacity=" + capacity
				+ ", remains=" + remains + ", create_datetime="
				+ create_datetime + ", course_template_id="
				+ course_template_id + ", lecturer_id=" + lecturer_id + "]";
	}

}
